﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<iss.sg4210.se18.team6s.jass.DAL.Event>>" %>
<table width="100%" class="lsttable">
    <%if (Model != null && Model.Count() > 0)
      {
          foreach (var item in Model)
          { %>
    <tr>
        <!--<td width="200" class="lsttd" >
            <%: String.Format("{0:dd MMMM yyyy}", item.Date) %>
        </td>-->
        <td class="lsttd">
            <%: Html.ActionLink(item.Name, "Details", "Event", new { id = item.Id }, new { })%>
            (
            <%: String.Format("{0:dd MMMM yyyy}", item.Date) %>)
        </td>
    </tr>
    <% 
        }
      }
      else
      {
    %>
    <tr>
        <td class="style1">
            No data Found!
        </td>
    </tr>
    <% } %>
</table>
